package com.jinjiafeng.baselibrary.util;

import android.content.Context;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.bumptech.glide.request.RequestOptions;

/**
 * @author jinjiafeng
 *         Time :18-5-26
 */

public class GlideLoder {
    public static void loadUrl(Context context, String url, ImageView imageView){
        Glide.with(context)
                .setDefaultRequestOptions(new RequestOptions().centerCrop())
                .load(url)
                .into(imageView);
    }
}
